import { Button } from 'antd'
import { Outlet, useNavigate } from 'react-router-dom'
function App() {
  const nav=useNavigate()
  return (
    <div>
      <Outlet/>
      <Button onClick={()=>nav('/data')}>首页</Button>
      <Button onClick={()=>nav('/data1')}>首页</Button>
      <Button onClick={()=>nav('/home')}>首页</Button>
      <Button onClick={()=>nav('/todo')}>首页</Button>
      <Button onClick={()=>nav('/my')}>首页</Button>
   
    </div>
  )
}

export default App
